/**
 * @License: (C) Copyright 2013-2022
 * @Contact: abcque@outlook.com
 * @IDE: IntelliJ IDEA
 * @Encoding: utf-8
 * @Project: st2214st2215
 * @Package: PACKAGE_NAME
 * @File: Zoo.java
 * @Time: 2023/2/21 15:31
 * @Author: abcque
 * @Description:
 * @Modifier:
 * @ModifyDate:
 * @ModifyRemark:
 */
public class Zoo {
    public static int number = 3;
    public static void main(String[] args) {
        System.out.println("number = " + number);
        Animal cat = new Animal();

        cat.legs = 4;

        System.out.println(cat.legs);
        cat.eat();
        cat.move();

        Animal chicken = new Animal();
        chicken.legs = 2;

        // leg 的值应该是多少？
        System.out.println(chicken.legs);

        new Animal().legs = 8;
        System.out.println(new Animal().legs);
    }
}
